//SRF sub unit

#ifndef __SRF_SUB_H__
#define __SRF_SUB_H__

//SRF sub unit
#define SRF_SUB_SIZE 4000*4
#define SRF_SUB_DEFUALT_VALUE 0
#define SRF2_SUB_DEFUALT_VALUE 0.0f
#define SRF_SUB_UNDEFINED 0
#define SRF_SUB_INT 1
#define SRF_SUB_FLOAT 2

class SRF_sub
{

public:
	SRF_sub();
	int  write(int loc, unsigned char value);
	int  write(int loc, int value);
	int  write(int loc, float value);
	int  read(int loc, unsigned char& value);
	int  read(int loc, int& value);
	int  read(int loc, float& value);
	int  clear();
	//unsigned char srf_stat[SRF_SUB_SIZE];

private:
	//int srf[SRF_SUB_SIZE];
	//float srf2[SRF_SUB_SIZE/2];
	unsigned char srf[SRF_SUB_SIZE];
	

};

#endif